import request from '@/utils/request';

// 查询朋友圈素材列表
export function listMaterial(query) {
	return request({
		url: '/system/material/list',
		method: 'post',
		data: query,
	});
}

// 查询朋友圈素材详细
export function getMaterial(id) {
	return request({
		url: '/system/material/getInfo',
		method: 'post',
		data: id,
	});
}

// 新增朋友圈素材
export function addMaterial(data) {
	return request({
		url: '/system/material/add',
		method: 'post',
		data: data,
	});
}

// 编辑朋友圈素材
export function updateMaterial(data) {
	return request({
		url: '/system/material/edit',
		method: 'post',
		data: data,
	});
}

// 删除朋友圈素材
export function delMaterial(id) {
	return request({
		url: '/system/material/remove',
		method: 'post',
		data: id,
	});
}

// 导出朋友圈素材
export function exportMaterial(query) {
	return request({
		url: '/system/material/export',
		method: 'post',
		params: query,
	});
}
